export const _path = (ctx, options, props) => {
    let { points, closed = true } = options
    ctx.beginPath();
    points.forEach((t, i) => {
        if (i === 0) {
            ctx.moveTo(t[0], t[1]);
        } else {
            ctx.lineTo(t[0], t[1]);
        }
    });
    if (closed) {
        ctx.closePath()
    }
    ctx.stroke();
}